package com.baibei.module;

import com.baibei.model.Area;

/**
 * Created by shenminjie on 2017/11/20.
 * mail:shenminjie@100bei.com
 */

public class AreaHelper {
    public static int getImageResource(Area contract) {
        //XAG 白银  XAU 黄金 XPT 铂金   全部传ALL
        int resource = 0;
        switch (contract) {
            case XAG:
                resource = R.mipmap.icon_type_silver;
                break;
            case XAU:
                resource = R.mipmap.icon_type_gold;
                break;
            case XPT:
                resource = R.mipmap.icon_type_platinum;
                break;
            case LMCADS03:
                resource = R.mipmap.icon_type_copper;
        }
        return resource;
    }
}
